home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7171 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.cyberport.com!usenet
  2. From: tangent@cyberport.com (Warren Young)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: STL
  5. Date: Wed, 21 Feb 1996 18:08:59 GMT
  6. Organization: none
  7. Message-ID: <312b5ef9.213303073@news.cyberport.com>
  8. References: <4g2s4j$583@news.iii.net>
  9. NNTP-Posting-Host: ppp12.cyberport.com
  10. X-Newsreader: Forte Agent .99d/32.182
  11.  
  12. lindak@pumpkin.iii.net (Linda Kasparek) wrote:
  13.  
  14. >I'm going to go out on a limb here and ask the obvious:  
  15. >where's the implementation for STL?  
  16.  
  17. If this isn't a FAQ, it should be.  _Everything_ is in the headers,
  18. because it's the Standard _Template_ Library.  There are only two
  19. common ways to do templates, and the only truly useful one is to drop
  20. everything in the header files.  This is because the compiler needs
  21. the _implementation_ for a templatized class at compile time in order
  22. to substitute in the template parameter(s).
  23.  
  24. A good book on the subject (and one that will answer many more FAQs
  25. for you) is Mark Nelson's (?) STL book from IDG Books.  Sorry, no more
  26. info than that because the book's at work and I'm not.
  27.  
  28. = Warren --
  29.